package com.xywh.dakaqiandao.mvp.api;

import com.xywh.dakaqiandao.mvp.ui.entity.DiQuSheZhi;
import com.xywh.dakaqiandao.mvp.ui.entity.Faceverify;
import com.xywh.dakaqiandao.mvp.ui.entity.ForgotPassword;
import com.xywh.dakaqiandao.mvp.ui.entity.GetAuth;
import com.xywh.dakaqiandao.mvp.ui.entity.Login;
import com.xywh.dakaqiandao.mvp.ui.entity.MySalary;
import com.xywh.dakaqiandao.mvp.ui.entity.MySalaryDetail;
import com.xywh.dakaqiandao.mvp.ui.entity.Person;
import com.xywh.dakaqiandao.mvp.ui.entity.QianDao;
import com.xywh.dakaqiandao.mvp.ui.entity.QianDaoJiLu;
import com.xywh.dakaqiandao.mvp.ui.entity.QianDaoJiLuLieBiao;
import com.xywh.dakaqiandao.mvp.ui.entity.Register;
import com.xywh.dakaqiandao.mvp.ui.entity.SignaturePadEntity;
import com.xywh.dakaqiandao.mvp.ui.entity.SouJiJingWeiDu;
import com.xywh.dakaqiandao.mvp.ui.entity.XieYi;

import java.util.Map;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;


public interface ApiService {

    Observable<QianDao> getQianDaoData(Map<String, String> map);

    Observable<Login> getLoginData(Map<String, String> map);

    Observable<Register> getRegisterData(Map<String, String> map);

    Observable<DiQuSheZhi> getDiQuSheZhiList(Map<String, String> map);

    Observable<SouJiJingWeiDu> getSouJiJingWeiDuData(Map<String, String> map);

    Observable<ForgotPassword> getForgotPasswordData(Map<String, String> map);

    Observable<QianDaoJiLu> getQianDaoJiLuList(Map<String, String> map);

    Observable<Person> getPersonData(Map<String, String> map);

    Observable<MySalary> getMySalaryList(Map<String, String> map);

    Observable<MySalaryDetail> getMySalaryDetailData(Map<String, String> map);

    Observable<SignaturePadEntity> getSignaturePadData(Map<String, String> map);

    Observable<XieYi> getXieYiData(Map<String, String> map);

    @GET("https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=iSVSIChZt6z6kHCus4Z7gGRO&client_secret=O0YT4G3AiZqEmt96RGHemL3ZjdOtkfLi")
    Observable<GetAuth> getAuth(@QueryMap Map<String, String> map);

    @Headers({"Content-Type: application/json", "Accept: application/json"})//需要添加头
    @POST("https://aip.baidubce.com/rest/2.0/face/v3/faceverify")
    Observable<Faceverify> faceverify(@Query("access_token") String access_token, @Body RequestBody info);

    Observable<QianDaoJiLuLieBiao> getQianDaoJiLuLieBiaoList(Map<String, String> map);

}
